package com.wxzz.elearing.evaluation.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.wxzz.elearning.common.bean.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * <p>
 * 题目分类
 * </p>
 *
 * @author
 * @since 2021-04-10
 */
@Data
@ApiModel(value = "TopicCategory对象", description = "题目分类")
public class TopicCategory extends BaseEntity {

    @ApiModelProperty(value = "分类名称")
    private String categoryName;

    @ApiModelProperty(value = "父级id")
    private Long pid;

    @ApiModelProperty(value = "层级 1,2,3,4")
    private Integer level;

    @TableField(exist = false)
    @ApiModelProperty(value = "子集")
    private List<TopicCategory> children;
}
